package com.sokal.easycare.modules.product.entity.brand;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.sokal.easycare.common.persistence.DataEntity;
import com.sokal.easycare.modules.product.entity.catalog.ProCatalog;

/**
 * 产品品牌Entity
 * 
 * @author liliangdong
 * @version 2017-03-12
 */
public class ProBrand extends DataEntity<ProBrand> {

	private static final long serialVersionUID = 1L;
	private String name; // 品牌名称
	private ProCatalog proCatalog; // 所属目录
	private String slogan; // 广告语
	private String logo; // 品牌logo
	private String isRecommend; // 是否推荐

	private String fastdfs_file_url;

	public ProBrand() {
		super();
	}

	public ProBrand(String id) {
		super(id);
	}

	@Length(min = 1, max = 100, message = "品牌名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@NotNull(message = "所属目录不能为空")
	public ProCatalog getProCatalog() {
		return proCatalog;
	}

	public void setProCatalog(ProCatalog proCatalog) {
		this.proCatalog = proCatalog;
	}

	@Length(min = 0, max = 500, message = "广告语长度必须介于 0 和 500 之间")
	public String getSlogan() {
		return slogan;
	}

	public void setSlogan(String slogan) {
		this.slogan = slogan;
	}

	@Length(min = 0, max = 255, message = "品牌logo长度必须介于 0 和 255 之间")
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Length(min = 0, max = 1, message = "是否推荐长度必须介于 0 和 1 之间")
	public String getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(String isRecommend) {
		this.isRecommend = isRecommend;
	}

	public String getFastdfs_file_url() {
		return fastdfs_file_url;
	}

	public void setFastdfs_file_url(String fastdfs_file_url) {
		this.fastdfs_file_url = fastdfs_file_url;
	}

}